package com.springinaction.knights;

import java.io.PrintStream;

/**
 * 创建一个简单的实现
 */
public class TestQuest implements Quest {

    private PrintStream stream; //一般构造器通用的输出流

    public TestQuest(PrintStream stream) {
        this.stream = stream;  //使用构造方法进行初始化
    }

    @Override
    public void embark() {
        stream.println("you must kill the dragon!");
    }
}
